package com.jumi.microservice.domain.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jumi.microservice.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * @author ssk
 * @create 20/10/29 10:11
 **/
@ApiModel
public class AppVersion extends BaseEntity {

    @ApiModelProperty("主键ID")
    @TableId(value = "version_id", type = IdType.AUTO)
    private Long versionId;

    @ApiModelProperty("h5-android版本号")
    @NotNull(message = "安卓用h5版本号不能为空")
    private String h5AndroidNo;

    @ApiModelProperty("h5-ios版本号")
    @NotNull(message = "ios用h5版本号不能为空")
    private String h5IosNo;

    @ApiModelProperty("安卓版本号")
    @NotNull(message = "安卓版本号不能为空")
    private String androidNo;

    @ApiModelProperty("ios版本号")
    @NotNull(message = "ios版本号不能为空")
    private String iosNo;

    @ApiModelProperty("是否强制更新;0=否,1=是")
    private Integer isForced;

    @ApiModelProperty("版本更新描述/详情;限制1000字符以内")
    @Max(value = 1000,message = "超出最大字数限制")
    private String description;


    public Long getVersionId() {
        return versionId;
    }

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }


    public String getAndroidNo() {
        return androidNo;
    }

    public void setAndroidNo(String androidNo) {
        this.androidNo = androidNo;
    }

    public String getIosNo() {
        return iosNo;
    }

    public void setIosNo(String iosNo) {
        this.iosNo = iosNo;
    }

    public String getH5AndroidNo() {
        return h5AndroidNo;
    }

    public void setH5AndroidNo(String h5AndroidNo) {
        this.h5AndroidNo = h5AndroidNo;
    }

    public String getH5IosNo() {
        return h5IosNo;
    }

    public void setH5IosNo(String h5IosNo) {
        this.h5IosNo = h5IosNo;
    }

    public Integer getIsForced() {
        return isForced;
    }

    public void setIsForced(Integer isForced) {
        this.isForced = isForced;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
